let UtilRes = {};

UtilRes.PRELOAD_LIST = [
    //editor-json
    "res/editorui/uistart.json",

    //model 
    "res/model/"
];


/**
 *天空盒的纹理
 *
 * @param {*} sFilepath
 * @returns
 */
UtilRes.skybox_texture = function (sFilepath) {
    return UtilRes.texture("skybox/" + sFilepath);
};

/**
 *纹理根路径
 *
 * @param {*} sFilepath
 * @returns
 */
UtilRes.texture = function (sFilepath) {
    return "res/texture/" + sFilepath;
};

/**
 *编辑器导出的obj 配置
 *
 * @param {*} sFilepath
 * @returns
 */
UtilRes.editor_objjson = function (sFilepath) {
    return "res/editor/objjson/" + sFilepath;
};
/**
 *编辑器导出的ui
 *
 * @param {*} sFilepath
 * @returns
 */
UtilRes.editor_uijson = function (sFilepath) {
    return "res/editor/uijson/" + sFilepath;
};
/**
 *模型资源
 *
 * @param {*} sModname
 * @returns
 */
UtilRes.model = function (sModname) {
    return "res/model/" + sModname;
};

export { UtilRes };